using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.EnumLibrary
{
    /// <summary>
    /// 授权范围
    /// </summary>
    public enum AuthorizationScopeEnum
    {
        /// <summary>
        /// 总公司及所有子公司
        /// </summary>
        [Description("总公司及所有子公司")]
        Root = 0,
        /// <summary>
        /// 仅限本人创建
        /// </summary>
        [Description("仅限本人创建")]
        Self = 1,
        ///// <summary>
        ///// 仅限本人及下属创建
        ///// </summary>
        //[Description("仅限本人及下属创建")]
        //SelfAndSubordinates = 2,
        /// <summary>
        /// 所在部门
        /// </summary>
        [Description("所在部门")]
        Department = 3,
        /// <summary>
        /// 所在机构
        /// </summary>
        [Description("所在机构")]
        Organization = 4,
        /// <summary>
        /// 自定义部门
        /// </summary>
        [Description("自定义部门")]
        CustomDepartment = 5,
        /// <summary>
        /// 自定义机构
        /// </summary>
        [Description("自定义机构")]
        CustomOrganization = 6
    }

    /// <summary>
    /// 授权模式（即源查询需提供字段，与可配置的授权范围相关联）
    /// </summary>
    public enum AuthorizeModeEnum
    {
        /// <summary>
        /// 数据创建人
        /// </summary>
        Creator,
        /// <summary>
        /// 机构
        /// </summary>
        OID,
        /// <summary>
        /// 机构及部门
        /// </summary>
        OID_ODID,
        /// <summary>
        /// 部门
        /// </summary>
        ODID,
    }
}
